home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir34 / dcp41.zip / DCP.DOC next >
Text File  |  1994-08-26  |  10KB  |  271 lines

  1.                                   
  2.                DCP v4.1 (c) 1993 by Michael Stal 
  3.  
  4.              The Disk Imaging and Copying Utility
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                                    alternative address:
  11. Michael Stal                   SIEMENS AG        
  12. Auenstrasse 34                   research & development
  13. D-80469 Muenchen                ZFE BT SE 31
  14. Tel: +49 89 2021276               Otto-Hahn-Ring 6
  15. Fax. +49 89 2021958                D-81739 Muenchen 
  16.                        Tel: +49 89 636-49380
  17.                                    Fax: +49 89 636-40757
  18.                                    Email: Michael.Stal@zfe.siemens.de
  19.                                       or: michael_stal@omg.org
  20.  
  21. What is DCP?
  22. ============
  23.  
  24. DCP was the first utility available for the creation of physical disk
  25. images.  Such an image contains the complete physical structure  of a
  26. floppy disk. Since images are ordinary files, you  are able to backup  
  27. disks by backing up their images. You could  use compression software
  28. like pkzip or arj for the same purpose, but this would have two great
  29. disadvantages: 
  30.  
  31. (1) Archivers are not capable of storing the physical structure of  a
  32.     disk, so they won't allow to  keep track of bootable or copy pro-
  33.     tected disks. Another problem arises, because  archivers are  not
  34.     able to recognize special files (files with read-only, system  or
  35.     hidden attribute). 
  36.  
  37. (2) Archivers are too slow in most circumstances. If the disk  to  be
  38.     backed up consists of many files and subdirectories it would be a 
  39.     tedious job to create or restore an  image  using  pkzip,  arj or 
  40.     lharc. 
  41.  
  42. DCP  now  includes  a  compression  algorithm  that makes image files
  43. considerably smaller.
  44.  
  45.  
  46. How does DCP work?
  47. ==================
  48.  
  49. If DCP is used to create an image file from a floppy disk,  DCP  will
  50. generate a header block  (with a size of 512 bytes),  which  contains 
  51. information  like floppy disk characteristics, optional comments  and
  52. other attributes.  This data  is  needed  to  retrieve  the  original 
  53. physical structure of a disk. The header  is  followed by the list of 
  54. sector contents read from the source disk. Obviously  the  size of an
  55. image file depends on the floppy disk format. It can be calculated by
  56. adding the capacity of the floppy disk to the 512 bytes  used  by the
  57. header block. Therefore you should not be surprised by the fact  that
  58. the size of the generated image file  must exceed the capacity of the
  59. source disk. However, when  you use the -D switch, a data-compression  
  60. algorithm will compress the image file. 
  61.  
  62. Remark: For more information about the structure of DCP-files look at
  63. the addendum of this document.
  64.  
  65.  
  66.  
  67. Using DCP
  68. =========
  69.  
  70. DCP is called with the following command line:
  71.  
  72.  DCP src dst [optional switches]
  73.  
  74. where you can use the following switches:
  75.  
  76.  optional switches := -F 
  77.                    := -D             
  78.                    := -I
  79.                    := -C
  80.                    := -S=xx/x/xx    
  81.                    := -V
  82.  
  83. src and dst must specify a floppy disk (A: or B:) or an  image  file.
  84.  
  85.  
  86. Examples: 
  87.  
  88.      (a) DCP A: C:\MYPATH\MYFILE -D
  89.          The physical structure of the floppy disk in A: is stored in  
  90.          the file named "MYFILE" using data compression.  
  91.  
  92.      (b) DCP C:\NYIMAGE B:
  93.          The image backed up in the file "MYIMAGE" is used to restore  
  94.          the physical structure of a floppy disk. For this purpose  a
  95.          diskette must be available in drive B:.
  96.  
  97.      (C) DCP X: Y:  or  DCP X: X:
  98.          The physical structure of the disk in drive X: is copied  to 
  99.          the disk in drive Y:. This means that you can use DCP  as  a 
  100.          better DISKCOPY,  since  there  is  no need  to  change  the    
  101.          source disk during the operation: DCP uses the DOS partition
  102.          to  store  the image of the source disk in a temporary file.
  103.      DCP will allow you to store the image to as many destination
  104.          disks as you want.
  105.  
  106.  
  107.  
  108. Some optional switches are available to modify the behaviour of  DCP:
  109.  
  110. -C         (Comment)    
  111.          Set/display comment line 
  112.  
  113. -D         (Data Compression)
  114.            When  a physical disk image is  stored into a file and 
  115.            the D-flag is specified, DCP will  use  a  compression
  116.            algorithm in order to make the resulting image-file as 
  117.            small  as possible. DCP  can  automatically  recognize 
  118.            compressed image-files, so that you  don't need to use 
  119.            the D-flag for restoring physical images.  
  120.  
  121. -I         (Ignore)       
  122.            Ignore defective  sectors. Even  if  a  disk  contains
  123.            bad sectors it is often very useful  to  save all  the 
  124.            sectors (good or bad) to a image file.   
  125.  
  126. -S=xx/x/xx (Specify diskette type)
  127.            Some times it is necessary to create or restore images     
  128.               using floppy disks with NON-DOS formats.  Usually  DCP 
  129.            reads the boot sector of  the  (source or destination)
  130.            disk to determine the disk  format  by  the  so-called
  131.            media-byte. If the media-byte contains a NON-DOS-value
  132.            DCP aborts with a message that it cannot  handle  this     
  133.            kind of disk format. It  is  possible to  specify  the 
  134.            necessary information yourself using the  S-option, so  
  135.            that DCP won't use auto-detection of disk formats, but 
  136.            take the specified parameters instead.
  137.  
  138. -F         (Do format)
  139.            In the case this switch is not specified by the  user,
  140.            DCP does automatically check if the inserted  diskette
  141.            is formatted. If it isn't,  DCP will format it without  
  142.            further user confirmation, otherwise the diskette will
  143.            not be reformatted. With the option  -F   the user can
  144.            force to format the disk even if it is already format-
  145.            ted.    
  146.  
  147. -V         (Do verify format)
  148.            Whenever a disk is formatted, DCP will not  verify the
  149.            format operation per default. If you want DCP to check 
  150.            for integrity, you must specify the -V option.
  151.            
  152.            
  153.  
  154. Additional utility DCPINFO.EXE:
  155.  
  156. The  utility  DCPINFO is called with the filename of a image file 
  157. as command line argument. DCPINFO checks the image  and  displays 
  158. its characteristics.
  159.  
  160.  
  161. DCP - updates and copyright
  162. ===========================
  163.  
  164. DCP is absolutely free of charge.  It may be  distributed and  copied
  165. as often as you want, unless it is used for commercial products.
  166. Any companies and institutions interested in adding DCP to their  SW-
  167. packages can contact the author for registration prices.  
  168.  
  169. In contrast to other comparable utilities any new version of DCP will 
  170. work with your old DCP-files. 
  171.  
  172.  
  173.  
  174. Suggestions, hints, ideas
  175. =========================
  176.  
  177. If you're interested in improving and enhancing DCP according to your
  178. own needs you are invited to send  me  any suggestions  and  ideas. I 
  179. appreciate all feedback from programmers and users. Programmers might
  180. get a copy of the DCP source code (DCP 4.0 was written in BORLAND C++ 
  181. 3.1).
  182.  
  183.  
  184.  
  185. Future Plans:
  186. =============
  187.  
  188. In the future there will be some additional enhancements to DCP v4.0:
  189.  
  190.  - WinDCP (for MS-Windows)
  191.  - Further tools for use with DCP-files
  192.  
  193.  
  194.  
  195.  
  196. Addendum: Structure of a DCP file
  197. =================================
  198.  
  199. DCP-Files are structured as follows: 
  200.  
  201.         -----------------------------------------------
  202.     | Adress  Size    Description                |
  203.     |----------------------------------------------
  204.     | 0       WORD    number of sectors per track |
  205.     | 2       WORD    number of sides               |
  206.     | 4       WORD    number of tracks          |
  207.     | 6       BYTE    comment              |
  208.     |         .                          |
  209.     |         .                      |
  210.     |         .                      |
  211.     | 88      BYTE    major number of version     | 
  212.     | 89      BYTE    minor number of version     |
  213.         | 90      WORD    data compression flag          |  
  214.         | 91        BYTE    signature  char #1          |
  215.         |         .                                   |
  216.         |         .                                   |  
  217.     | 94      BYTE    signature  char #4          |
  218.         | 95      BYTE    reserved for future use     |
  219.     |         .                      |
  220.     |         .                      |
  221.     |         .                      |
  222.         | 511     BYTE    reserved for future use     |
  223.     -----------------------------------------------
  224.     | 512                           |
  225.     |                          |
  226.     |         physical blocks of diskette           |
  227.     |                           |
  228.     | end of file                      |  
  229.     -----------------------------------------------                 
  230.  
  231.  
  232.  
  233. Remark (1)
  234. The physical blocks of the diskette are read/written in the  sequence
  235. (where N specifies the number of sectors per track):
  236.  
  237. 1st track
  238.  side 0 : sector_1 ... sector_N
  239.  side 1 : sector_1 ... sector_N
  240. 2nd track
  241.  side 0 : sector_1 ... sector_N
  242.  side 1 : sector_1 ... sector_N
  243. .
  244. .
  245. .
  246. last track
  247.  side 0 : sector_1 ... sector_N
  248.  side 1 : sector_1 ... sector_N
  249.  
  250.  
  251. This data may be compressed.
  252.  
  253.  
  254. Remark(2)
  255. If the major version number equals 0, then the DCP-file  was  created
  256. with a DCP-version smaller or equal version 2.1.
  257.  
  258.  
  259. Remark(3)
  260. The data compression flag is 0 for all DCP-versions <= 3.0; otherwise
  261. (version >= 4.0) this  flag indicates  whether  the  stored  image is 
  262. compressed or not.
  263.  
  264.  
  265. Remark(4)
  266. The  DCP-signature  is not  set  for  DCP-version <= 3.0.  For  newer 
  267. versions it contains the null-terminated string "DCP".
  268.  
  269. ///////////////////// END OF DOCUMENTATION //////////////////////////
  270.  
  271.